From 405da05b93269b1c412fab1d9ee181df1119bfd8 Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Fri, 9 Jul 2004 15:13:35 +0000 Subject: [PATCH] bitkeeper revision 1.1062 (40eeb61foD5LNFQo1m7VdXuEO9IO_g) Enable the various scheduler set functions - they were all commented-out. --- tools/python/xen/xend/XendNode.py | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/tools/python/xen/xend/XendNode.py b/tools/python/xen/xend/XendNode.py index 4073d753c7..4bc0b420e8 100644 --- a/tools/python/xen/xend/XendNode.py +++ b/tools/python/xen/xend/XendNode.py @@ -25,29 +25,22 @@ class XendNode: return 0 def cpu_bvt_slice_set(self, ctx_allow): - ret = 0 - #ret = self.xc.bvtsched_global_set(ctx_allow=slice) - return ret - - def cpu_bvt_slice_get(self, ctx_allow): - ret = 0 - #ret = self.xc.bvtsched_global_get() - return ret + return self.xc.bvtsched_global_set(ctx_allow=ctx_allow) + + def cpu_bvt_slice_get(self): + return self.xc.bvtsched_global_get() def cpu_fbvt_slice_set(self, ctx_allow): - ret = 0 - #ret = self.xc.bvtsched_global_set(ctx_allow=slice) - return ret - - def cpu_fbvt_slice_get(self, ctx_allow): - ret = 0 - #ret = self.xc.bvtsched_global_get() - return ret + return self.xc.bvtsched_global_set(ctx_allow=ctx_allow) + + def cpu_fbvt_slice_get(self): + return self.xc.bvtsched_global_get() def cpu_rrobin_slice_set(self, slice): - ret = 0 - #ret = self.xc.rrobin_global_set(slice) - return ret + return self.xc.rrobin_global_set(slice=slice) + + def cpu_rrobin_slice_get(self): + return self.xc.rrobin_global_get() def info(self): return self.nodeinfo() + self.physinfo() -- 2.30.2